<?php
namespace Orx\Etl;
/**
 * DataType Object.
 *
 * It represant the type of data that its contain in a cell. Could be a 
 * string, date, numeric, email...
 *
 * @author Xavier VILAIN
 * @package Orx\Etl
 *
 * @property string	$type			Id of the Source
 * @property string	$label			Source name
 * @property bool	$standard		Is a standard type (can't be deleted)
 * @property bool	$active			Is an active type (can be selected)
 */
class DataType  extends \Fox\Object {

	/**
	 * Reverse Link to Sources
	 * @var string
	 */
	const LINK_ITEM = 'item';
	
	/**
	 * 
	 * Find lable in the correct language
	 * @return string 
	 */
	public function label() {
		return $this->label;
	}
}
\Fox\Dao::infos(
	DataType::className(),
	new \Fox\Object\Info('etl_field_datatypes', \Fox\Databases::DB_APP)
);
//\Fox\Dao::useZone(DataType::className(),new \Fox\Dao\MemoryCacheZone(\Fox\Dao\MemoryCacheZone::PERIOD_FOREVER,DataType::cacheDirectory()));